//index.js
//获取应用实例
const app = getApp()
Page({
  data: {
    user:[],
    // 组件所需的参数
    nvabarData: {
      showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
      title: '个人信息', //导航栏 中间的标题
    },
    // 此页面 页面内容距最顶部的距离
    height: app.globalData.height * 2 + 20,
  },
  onLoad() {
    let url = app.globalData.URL+'system/user/wx/info';
        let data = {};
        let that = this;
        app.wxRequest('GET', url, data, (res) => {
          let user = res.data.sysUser
          that.setData({
            user:user
          })
        }, (err) => {
          console.log(err.errMsg)
        })
  },
  modify_num:function(){
    wx.navigateTo({
      url: '/modelB/pages/my/modify_mobile_number/modify_mobile_number',
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  }
})
